const router = {
    routes: [{
        path: '/',
        redirect: '/home/index'
    },{
        path: '/home',
        name: 'home',
        component: () => import('@/components/layout/home.vue'),
        children: [{
            path: 'index',
            component: () => import('./index/main.vue'),
        },{
            path: 'test',
            component: () => import('./test/main.vue'),
        },{
            path: 'other',
            component: () => import('./other/main.vue')
        },{
            path: '*',
            component: () => import('@/pages/home/404.vue'),
        },]
    },{
        path: '/login',
        name: 'login',
        component: () => import('@/pages/home/login.vue')
    },{
        path: '*',
        component: () => import('@/pages/home/404.vue')
    }]
}

export default router